function findUser($find, $res, $phone, $labelPhone, $name, $passwd, $email, $phone1, $regtime, $logintime, $labelName, $labelPasswd, $labelEmail, $labelPhone1) {
    //$res.hide();

    let timeout;
    let findingPhone;
    json.waitingForSamePhone = false;// 提交同一内容须等待 10 秒
    let findByPhone = function () {
        $phone.val($phone.val().trim());
        if (timeout !== undefined) clearTimeout(timeout);
        timeout = setTimeout(function () {
            json.waitingForSamePhone = false;
        }, 10000);
        if (findingPhone === $phone.val() && json.waitingForSamePhone) {
            layer.msg('请勿重复提交同一内容');
            return false;
        }
        findingPhone = $phone.val();
        if (!test_ipt(testPhone, $phone, $labelPhone)) {
            layer.msg('请输入正确的手机号码');
            return false;
        }
        let windowId = layer.load();
        $.getJSON("/admin/views/user/find.do", {
            phone: $phone.val()
        }, function (data) {
            layer.close(windowId);
            layer.msg(data.message);
            if (data.status === 0) {
                json = data.data;
                $name.val(json.name);
                $passwd.val(json.password);
                $email.val(json.email);
                $phone1.val(json.phone);
                $regtime.val(json.regtime);
                $logintime.val(json.logintime);
                if ($labelName !== null) {
                    test_ipt(testName, $name, $labelName);
                    test_ipt(testPasswd, $passwd, $labelPasswd);
                    test_ipt(testEmail, $email, $labelEmail);
                    test_ipt(testPhone, $phone1, $labelPhone1);
                }
                $res.fadeIn(1000);
            }
            json.waitingForSamePhone = true;
        });
        return false;
    };

    let keyPressEvent = function (key) {
        if (key.key === 'Enter') {
            findByPhone();
            onkeypress = undefined;
        }
    };

    $phone.bind('input propertychange', function () {
        onkeypress = keyPressEvent;
        test_ipt(testPhone, $phone, $labelPhone);
    });

    $find.click(findByPhone);
}